<header class="header">
    <div class="header-content">
        <div class="logo">
            <i class="fas fa-check-circle"></i>
            <h1>TODO List</h1>
        </div>
        <nav class="nav">
            <a href="{{ url_for('index') }}" class="nav-link {% if request.endpoint == 'index' %}active{% endif %}">
                <i class="fas fa-home"></i> 首页
            </a>
            <a href="{{ url_for('create_todo') }}" class="nav-link {% if request.endpoint == 'create_todo' %}active{% endif %}">
                <i class="fas fa-plus"></i> 新建
            </a>
        </nav>
    </div>
</header>